from typing import Any


class InvalidToken(Exception):
  """Raised when an invalid token address is used."""

  def __init__(self, address: Any) -> None:
    Exception.__init__(self, f"Invalid token address: {address}")


class InvalidPool(Exception):
  """Raised when an invalid pool address is used."""

  def __init__(self, address: Any) -> None:
    Exception.__init__(self, f"Invalid pool address: {address}")
